package com.dd.ent.car.ui.user.note;

import android.content.Context;
import android.view.View;

import com.dd.ent.car.common.bean.forum.Forum;
import com.dd.ent.car.common.bean.note.Note;
import com.dd.ent.car.ui.adapter.ViewHolder;
import com.dd.ent.car.ui.adapter.base.BaseListAdapter;
import com.dd.ent.car.ui.note.NoteItemLongView;
import com.dd.ent.car.ui.note.NoteItemShortView;
import com.pp.ent.base.log.MLog;

import java.util.Random;

/**
 * Created by huanghaibin
 * on 16-5-23.
 */
public class UserNoteAdapter extends BaseListAdapter<Note> {
    private final static String TAG = UserNoteAdapter.class.getSimpleName();
    private String systemTime;

    public UserNoteAdapter(Callback callback) {
        super(callback);
    }

    @Override
    protected void convert(ViewHolder vh, Note item, int position) {
    }

    @Override
    protected void refreshData(ViewHolder vh, View view, Note item, int position) {
        if (view instanceof NoteItemView) {
            ((NoteItemView) view).refreshData(position, item);
        }
    }

    @Override
    protected int getLayoutId(int position, Note item) {
        return -1;
    }

    @Override
    protected View bindView(Context context, int position, Note item) {
        return new NoteItemView(context);
    }

    public void setSystemTime(String systemTime) {
        this.systemTime = systemTime;
    }


}
